Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

occ commands to manage logging #18369

Merged
merged 4 commits into from
Aug 20, 2015
Merged

occ commands to manage logging #18369

merged 4 commits into from
Aug 20, 2015

Conversation

RobinMcCorkell
Copy link
Member

In similar vein to the maintenance:* commands and others, this PR introduces two new occ commands, log:manage and log:owncloud. It takes away the requirement to look at the documentation to change logging settings.

log:manage allows the following information to be set/displayed: logging backend (owncloud, errorlog, syslog), log level and log timezone.

log:owncloud manages the owncloud logging backend, and can be used to set/display: log filename and log rotation size. These are parameters specific to the owncloud backend, and so get their own command

@PVince81 we discussed this briefly

cc @DeepDiver1975 @MorrisJobke @LukasReschke

@karlitschek
Copy link
Contributor

Very cool and useful!! 👍

@RobinMcCorkell
Copy link
Member Author

It'd be nice if the CI build slave didn't shutdown while testing this... I'll try again in the morning.

@MorrisJobke MorrisJobke added this to the 8.2-current milestone Aug 18, 2015
@DeepDiver1975
Copy link
Member

02:33:57 + phpenv local 5.3.28
02:33:57 /tmp/hudson6519004932099214154.sh: 3: /tmp/hudson6519004932099214154.sh: phpenv: not found

@DeepDiver1975
Copy link
Member

@DeepDiver1975 STOP PLAYING AROUND WITH THE CI SYSTEM!

if (is_numeric($level)) {
$levelNum = $level;
// sanity check
$level = $this->convertLevelNumber($levelNum);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$level is unused

@DeepDiver1975
Copy link
Member

I'd like to see unit test on these new commands - THX

Robin McCorkell added 3 commits August 19, 2015 12:33
log:manage can set/display the log backend, log level and log timezone
log:owncloud can set/display the log filename and log file rotation size
@scrutinizer-notifier
Copy link

A new inspection was created.

@@ -493,9 +493,10 @@
'log_type' => 'owncloud',

/**
* Change the ownCloud logfile name from ``owncloud.log`` to something else.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@carlaschroder please review these changes since the will be re-used in the documentation

@ghost
Copy link

ghost commented Aug 19, 2015

🚀 Test PASSed.🚀
chuck

@PVince81
Copy link
Contributor

👍

Now all I'm missing is another command "./occ log:human" that outputs the log in a properly formatted way, with nicely presented stack traces (I'm tired of manually reformatting stack traces in bug reports)

@RobinMcCorkell
Copy link
Member Author

@PVince81 Getting there 😄

@MorrisJobke
Copy link
Contributor

Tested and works 👍

MorrisJobke added a commit that referenced this pull request Aug 20, 2015
occ commands to manage logging
@MorrisJobke MorrisJobke merged commit c7b0d50 into master Aug 20, 2015
@MorrisJobke MorrisJobke deleted the occ-log branch August 20, 2015 10:57
@lock lock bot locked as resolved and limited conversation to collaborators Aug 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants